import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import utils from './utils'
import Icon from 'vue-svg-icon/Icon.vue' //引入svg插件
// import coverflow from 'vue-coverflow'//引入相册预览插件
import Moment from 'moment';
import 'amfe-flexible'
//初始化样式
import './common/stylus/index.styl'
//全局样式
import './common/style/index.css';
Vue.prototype.$echarts = require("echarts")
// Vue.prototype.$echarts = echarts


Vue.config.productionTip = false


Vue.component('icon', Icon) //注册svg插件

Vue.use(utils)
Vue.prototype.$moment = Moment
Vue.filter('comverTime', function (data, format) {
  return Moment(data).format(format);
});

// Vue.use(coverflow)


import {
  Image as VanImage, Button, Tab, Tabs, Col, Row, Card, Skeleton, Divider, ImagePreview,
  Search, Cell, CellGroup, Field, Uploader, NavBar, DropdownMenu, DropdownItem, Tag, Collapse, CollapseItem,
  RadioGroup, Radio, Checkbox, CheckboxGroup, Popup, Slider, ActionSheet
  , Cascader, Swipe, SwipeItem, Lazyload, DatetimePicker
  // ,Calendar
  // ,Badge
} from 'vant';
Vue.use(Button)
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Col);
Vue.use(Row);
Vue.use(VanImage);
Vue.use(Card);
Vue.use(Skeleton);
Vue.use(Divider);
Vue.use(ImagePreview);
Vue.use(Search);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Field);
Vue.use(Uploader);
Vue.use(NavBar);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Tag);
Vue.use(Collapse);
Vue.use(CollapseItem);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Popup);
Vue.use(Slider);
Vue.use(ActionSheet);
Vue.use(Cascader);
// Vue.use(Calendar);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Lazyload);
Vue.use(DatetimePicker);
// Vue.use(Notify);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
